package com.example.market_management.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.market_management.model.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.omg.PortableInterceptor.INACTIVE;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.print.attribute.standard.MediaSize;
import java.util.List;

@Mapper
@Repository
public interface orderMapper extends BaseMapper<Order> {
    int orderCount(@Param("userId") int  userId, @Param("orderStatus") Integer orderStatus);

    List<Order> orderList(@Param("userId") Integer userId, @Param("orderStatus") Integer  orderStatus );

    Order orderInfo(String orderId);

    int  updatePayCode(Integer userId,String newPayCode);

    int updateOrderStatus(@Param("orderId")  String orderId, @Param("orderStatus") Integer orderStatus);

}
